<div id="divImport">
    <?php echo $form->create('CustSiteCostCenter', array('type' => 'file', 'url' => array('controller' => 'its_customers', 'action' => 'import_site_cost_center', $site_id))); ?>
    <table>
        <tbody>
            <tr>
                <td width="30px"><?php echo $form->label('SiteCostCenter.file', 'File'); ?></td>
                <td><?php echo $form->file('SiteCostCenter.file', array('size' => 50)); ?></td>
            </tr>
            <tr>
                <td align="center">&nbsp;</td>
                <td class="right">
                    <?php echo $html->link('Download Template', array('controller' => 'its_customers', 'action' => 'template_site_cost_center', $site_id), array('class' => 'btnTemplate ui-state-default ui-corner-all template', 'style' => 'padding: 4px 5px; margin-top: 5px')); ?>
                    <button class="btnSubmit ui-state-default ui-corner-all" type="button" onclick="this.form.submit()" style="padding: 2px; margin-top: 5px">
                        <?php echo $html->image('icon/import.png'); ?>
                        Import
                    </button>
                </td>
            </tr>
        </tbody>
    </table>
    <?php echo $form->end(); ?>
</div>
<script type="text/javascript">
    $j(function() {
        $j(".btnSubmit").handover().click(function() {
            $j('#popup').dialog('close');
        });
    });
</script>